﻿using AutoMapper;
using Nop.Core.Infrastructure;
using Nop.Plugin.Misc.MessageDesigner.Domain;
using Nop.Plugin.Misc.MessageDesigner.Models;

namespace Nop.Plugin.Misc.MessageDesigner
{
    public class AutoMapperStartupTask : IStartupTask
    {
        public void Execute()
        {
            Mapper.CreateMap<MessageDesign, MessageDesignModel>();
            Mapper.CreateMap<MessageDesignModel, MessageDesign>();
            

        }

        public int Order
        {
            get { return 0; }
        }
    }
}